<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>国家列表</em></a><span>|</span>
        <a href="<?php echo U('site/region_edit');?>">添加国家</a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th colspan="3">国家列表</th>
		</tr>
	</thead>
<tbody>
<?php 
if(isset($regionList) && $regionList):
	$i=0;
	$count = count($regionList);
	foreach ($regionList as $region):
		if($i%3==0)echo'<tr>';
?>

		<td align="left" width="1/3">
		<a href="<?php echo U('site/region_edit', 'rid='. $region['id']);?>"><?php echo $region['name'];?></a> | 
		 <a href="<?php echo U('site/region_edit', 'rid='. $region['id']);?>"	title="修改">修改</a> |  
		 <a	href='<?php echo U('site/region_delete', 'rid='. $region['id']);?>'	onClick="return confirm('确认要删除 『 <?php echo $region['name'];?> 』 吗？')">删除</a> 
		</td>

<?php 
	if(($i+1)%3==0 || ($i+1)==$count)echo '</tr>';
	$i++;
	endforeach;
endif;
?>
	</tbody>
</table>
</div>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</body>
</html>